<?php

include_once "model.php";

function render($node) {
	echo '<p>'.$node[NODE_CONTENT].'</p>';
}

$counter = 0;
$nodesToExpand = 6;

include("inc/header.inc");
?>
<h1>Unconventional Conflict at Sea.</h1>
<?
$currentNode = $model->get_random_node(1);

while($counter < $nodesToExpand-1)
{
	render($currentNode);
	
	$counter++;
		
	$currentNode = $model->getNextNode($currentNode);
}


?>
<hr>
<h1>What is this?</h1>
<p>
This story was created by traversing the Fractal Narrative structure to provide a story with randomized detail at each element. The intention is to ascertain the coherence of the story at arbitrary resolutions.
</p>
<?
include("inc/footer.inc");
?>

